cc.Class({
        extends: cc.BaseClass,
            
        properties: {
            labDes : cc.Label
        },
    
        start () {
    
        },
    
        initData:function(data){
    //         this.callBack = callBack;
            this.m_type = data.type || 2;
            this.m_data = data.data;
            this.m_callCancle = data.callCancle;
            this.m_callConfirm = data.callConfirm;
            this.m_target = data.target;
            this.labDes.string = this.m_data;
            if(this.m_type  == 2){//2个按钮都在
    
            }
        },
    
        onBtnClickCallBack:function(event,customData){
            var type = customData;
            if(type == "btnConfirm"){
                this.onConfirmClick();
            }else if(type == "btnCancle"){
                this.onCloseClick();
            }
        },
    
        //点击确定
        onConfirmClick:function(){
            this.m_callConfirm && this.m_callConfirm.apply(this,[this.m_target]);
            this.onCloseClick();        
        }
    });
    
    